package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysFinancingMapper;
import com.ruoyi.system.domain.SysFinancing;
import com.ruoyi.system.service.ISysFinancingService;

/**
 * 融资申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
@Service
public class SysFinancingServiceImpl implements ISysFinancingService 
{
    @Autowired
    private SysFinancingMapper sysFinancingMapper;

    /**
     * 查询融资申请
     * 
     * @param id 融资申请主键
     * @return 融资申请
     */
    @Override
    public SysFinancing selectSysFinancingById(Long id)
    {
        return sysFinancingMapper.selectSysFinancingById(id);
    }

    /**
     * 查询融资申请列表
     * 
     * @param sysFinancing 融资申请
     * @return 融资申请
     */
    @Override
    public List<SysFinancing> selectSysFinancingList(SysFinancing sysFinancing)
    {
        return sysFinancingMapper.selectSysFinancingList(sysFinancing);
    }

    /**
     * 新增融资申请
     * 
     * @param sysFinancing 融资申请
     * @return 结果
     */
    @Override
    public int insertSysFinancing(SysFinancing sysFinancing)
    {
        return sysFinancingMapper.insertSysFinancing(sysFinancing);
    }

    /**
     * 修改融资申请
     * 
     * @param sysFinancing 融资申请
     * @return 结果
     */
    @Override
    public int updateSysFinancing(SysFinancing sysFinancing)
    {
        return sysFinancingMapper.updateSysFinancing(sysFinancing);
    }

    /**
     * 批量删除融资申请
     * 
     * @param ids 需要删除的融资申请主键
     * @return 结果
     */
    @Override
    public int deleteSysFinancingByIds(Long[] ids)
    {
        return sysFinancingMapper.deleteSysFinancingByIds(ids);
    }

    /**
     * 删除融资申请信息
     * 
     * @param id 融资申请主键
     * @return 结果
     */
    @Override
    public int deleteSysFinancingById(Long id)
    {
        return sysFinancingMapper.deleteSysFinancingById(id);
    }
}
